const webpack = require('webpack')
const options = require('./webpack.config')

const complier = webpack(options)

// 由 compiler 调用 run 方法
complier.run(function (err, stats) {
  console.log(err)
  console.log('this is stats', stats.toString())
})
